home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
cnews.orig.lzh
/
relay
/
io.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-06-27
|
465b
|
28 lines
/*
* common i/o operations
*/
#include <stdio.h>
#include <sys/types.h>
#include "news.h"
#include "headers.h"
#include "article.h"
#include "msgs.h"
/*
* If *fpp is non-null, fclose it and check for errors.
* On error, call fulldisk(art, name).
*/
void
nnfclose(art, fpp, name)
struct article *art;
register FILE **fpp;
char *name;
{
if (*fpp != NULL) {
if (nfclose(*fpp) == EOF)
fulldisk(art, name);
*fpp = NULL; /* mark the stream closed */
}
}